﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;


namespace GuiLayer
{
    /// <summary>
    /// Interaction logic for ApVerhuurd.xaml
    /// </summary>
    public partial class ApVerhuurd : Window
    {
        public List<GuiLayer.VerhuurdReference.Verhuurd> VerhuurdLijst { get; set; }

        GuiLayer.VerhuurdReference.iVerhuurdClient client = new GuiLayer.VerhuurdReference.iVerhuurdClient();

        public ApVerhuurd()
        {
            List<GuiLayer.VerhuurdReference.Verhuurd> l = client.GetAlleVerhuur().ToList();
            VerhuurdLijst = l;
            InitializeComponent();
        }

        private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
        }

        private void DataGrid_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
        {

        }

        private void btnTerug_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
            ApAlgemeen f2 = new ApAlgemeen();
            f2.ShowDialog();
        }
    }
}
